package com.efrei.schoolmanager.views.components;

import java.awt.Dimension;

import javax.swing.JButton;

public class CustomButton extends JButton {
	private static final long serialVersionUID = -8761374394594251051L;

	// Dimension par defaut
	private final static Dimension DIM = new Dimension(180, 26);

	public CustomButton() {
		super();
		setMinimumSize(DIM);
		setPreferredSize(DIM);
		setMaximumSize(DIM);
	}

	public CustomButton(Dimension d) {
		super();
		setMinimumSize(d);
		setPreferredSize(d);
		setMaximumSize(d);
	}

	public CustomButton(String s) {
		super(s);
		setMinimumSize(DIM);
		setPreferredSize(DIM);
		setMaximumSize(DIM);
	}

	public CustomButton(String s, Dimension d) {
		super(s);
		setMinimumSize(d);
		setPreferredSize(d);
		setMaximumSize(d);
	}
}
